package com.demo;

import java.util.concurrent.*;

/**
 * @Author：Administrator
 * @Date：2022/4/15/0015 19:16
 * @Versiion：1.0
 */

public class HttpDemo {

    public static void main(String[] args) {


        ExecutorService executorService = new ThreadPoolExecutor(5,20,1L,
                TimeUnit.SECONDS,new ArrayBlockingQueue(4), Executors.defaultThreadFactory()
        );
        for(int i=0;i<7;i++){
            executorService.execute(()->{
                System.out.println(Thread.currentThread().getName()+" "+"--->办理业务");
            });
        }
        executorService.shutdown();


        String baseUrl = "http://zfyxdj.xa.gov.cn/zfrgdjpt/jggs.aspx?qy=00&yxbh=0000002953&page=";
        for (int page = 1;page <= 1559; page++){

        }
    }
}
